package cn.cloud.butler.scheduled.controller;

import cn.cloud.butler.scheduled.schedule.DayTimeInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.HashMap;

/**
 * @author GaoGuoPei
 * @describe
 * @date 2023/8/17
 **/
@RestController
@RequestMapping("/test")
public class testController {
    private final DayTimeInfo dayTimeInfo;

    public testController(DayTimeInfo dayTimeInfo) {
        this.dayTimeInfo = dayTimeInfo;
    }

    @GetMapping("/a")
    public void a() throws IOException {
        dayTimeInfo.dealStateSum();
    }

}
